package com._23DesignPattern._action._visitor.demo1;

/**
 * @Author: huangya
 * @Date: 2020/09/12
 * @Description:
 */
public class ConcreteVisitorB implements Visitor {

    public void visit(ConcreteElementA element) {
        System.out.println("具体访问者B访问-->" + element.operationA());
    }

    public void visit(ConcreteElementB element) {
        System.out.println("具体访问者B访问-->" + element.operationB());
    }
}
